<?php defined('SYSPATH') OR die('No direct access allowed.');

class Model_Cms_Admin extends Model {
	
	public function save_settings()
	{
		$post = $_POST;
		DB::update('settings')
			->set(array('seo_description'=>$post['seo_description'],'seo_keywords'=>$post['seo_keywords'],'portal_name'=>$post['portal_name'],'page_title'=>$post['page_title']))
			->execute();
	}
	
	public function get_settings()
	{
		return DB::select()->from('settings')->execute()->current();
	}
	
}